package com.poker.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.poker.base.Result;
import com.poker.entity.LoginLog;
import com.poker.entity.User;

import javax.servlet.http.HttpServletRequest;
import java.net.UnknownHostException;
import java.util.List;


public interface UserService {

    User getOneUser(String userId);

    Result<User> login(String userId, String password, HttpServletRequest request) throws UnknownHostException;

    IPage<LoginLog> getLoginLog(IPage<LoginLog> pageReq);

    Result<String> delLog(String id);

    Result<String> logout();
}
